package best.driver.android.Model;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;

/**
 * Created by xiangxuefeng on 15/9/8.
 */
@Table(name = "order_detail")
public class OrderDetailModel extends Model {
    @Column(name = "orderId", notNull = true, unique = true)
    public String orderId;

    @Column(name = "waitTime", notNull = true)
    public long waitTime;

    @Column(name = "start_load_time", notNull = true)
    public long startLoadTime =0;

    @Column(name = "end_load_time", notNull = true)
    public long endLoadTime=0;

    @Column(name = "start_unload_time", notNull = true)
    public long startUnloadTime=0;

    @Column(name = "end_unload_time", notNull = true)
    public long endUnloadTime=0;

    @Column(name = "last_time", notNull = true)
    public long lastLocationTime=0;

    @Column(name = "distance", notNull = true)
    public double distance=0;

    @Column(name = "start_lat", notNull = true)
    public double startLat=0.0;

    @Column(name = "start_lng", notNull = true)
    public double startLng=0.0;

    @Column(name = "start_time", notNull = true)
    public long startTime;

    @Column(name = "end_time", notNull = true)
    public long endTime;

    @Column(name = "lat")
    public double lastLat = 0.0;

    @Column(name = "lng")
    public double lastLng = 0.0;



}
